<template>
  <el-result icon="error" title="404" sub-title="该页面不存在">
    <template #extra>
      <el-button type="primary" @click="back">返回首页</el-button>
    </template>
  </el-result>
</template>

<script lang="ts" setup>
import { ref } from 'vue'
import { useRouter } from 'vue-router'

const router = useRouter()

const back = () => {
  router.push('/')
}
</script>

<style scoped lang="scss"></style>
